package com.bjesc_b2c.app.appraiset.widget.dialog;

import android.content.Context;
import android.widget.TextView;

import com.bjesc_b2c.app.appraiset.R;
import com.bjesc_b2c.app.appraiset.widget.BaseDialog;

import master_bean.CustomerDetailsBean;

/**
 * Created by yidong on 2017/5/25.
 */

public class DealerDialog extends BaseDialog {
    private TextView dealer_name;
    private TextView client_name;
    private TextView client_tel;
    private TextView dealer_address;
    private CustomerDetailsBean.DealerBean dealerBean;
    public DealerDialog(Context context, CustomerDetailsBean.DealerBean dealerBean) {
        super(context);
        this.dealerBean= dealerBean;
        initViews();
    }
    private void initViews() {
        view = inflater.inflate(R.layout.layout_dialog_look_dealer,null);
        dealer_name = (TextView) view.findViewById(R.id.tv_dealer_name);
        dealer_name.setText(dealerBean.getName());
        client_name = (TextView)view.findViewById(R.id.tv_client_name);
        client_name.setText(dealerBean.getBoss());
        client_tel = (TextView) view.findViewById(R.id.tv_client_tel);
        client_tel.setText(dealerBean.getPhone());
        dealer_address = (TextView) view.findViewById(R.id.tv_dealer_address);
        dealer_address.setText(dealerBean.getAddress());
        setContentView(view);
    }
}
